# 基础镜像
FROM eclipse-temurin:8
# 作者
MAINTAINER L
# 工作目录
WORKDIR /nft
# 同步docker内部的时间
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 设置时区
ENV TZ=Asia/Shanghai
EXPOSE 18077
# 复制jar包到/user/local/java下
ARG JAR_FILE
ADD ${JAR_FILE} ./nft-member-0.0.1-SNAPSHOT.jar

ENTRYPOINT ["nohup","java","-jar","/nft/nft-member-0.0.1-SNAPSHOT.jar",">","/nft/member.log","&>","&"]